import 'package:enterprise_v6_app/generated/json/base/json_convert_content.dart';
import 'package:enterprise_v6_app/app/data/entities/application/get_point_risk_entity.dart';

GetPointRiskEntity $GetPointRiskEntityFromJson(Map<String, dynamic> json) {
  final GetPointRiskEntity getPointRiskEntity = GetPointRiskEntity();
  final String? id = jsonConvert.convert<String>(json['id']);
  if (id != null) {
    getPointRiskEntity.id = id;
  }
  final String? plate = jsonConvert.convert<String>(json['plate']);
  if (plate != null) {
    getPointRiskEntity.plate = plate;
  }
  final String? method = jsonConvert.convert<String>(json['method']);
  if (method != null) {
    getPointRiskEntity.method = method;
  }
  final String? url = jsonConvert.convert<String>(json['url']);
  if (url != null) {
    getPointRiskEntity.url = url;
  }
  return getPointRiskEntity;
}

Map<String, dynamic> $GetPointRiskEntityToJson(GetPointRiskEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['id'] = entity.id;
  data['plate'] = entity.plate;
  data['method'] = entity.method;
  data['url'] = entity.url;
  return data;
}

extension GetPointRiskEntityExtension on GetPointRiskEntity {
  GetPointRiskEntity copyWith({
    String? id,
    String? plate,
    String? method,
    String? url,
  }) {
    return GetPointRiskEntity()
      ..id = id ?? this.id
      ..plate = plate ?? this.plate
      ..method = method ?? this.method
      ..url = url ?? this.url;
  }
}